package cn.com.hatech.blog.module.admin.attach.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @projectName: hatech-blog
 * @package: cn.com.hatech.blog.module.admin.entity
 * @className: Attach
 * @author: xuruikai
 * @description: 文件上传entity
 * @date: 2020/1/11 14:27
 * @version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "attach")
@Builder
public class Attach {

    /**
     * 必须：ID唯一标识 @GeneratedValue 动态生成UUID策略
     */
    @TableId(type = IdType.UUID)
    @TableField("id")
    private String id;
    /**
     * 文件名称
     */
    @TableField(value = "file_name")
    private String fileName;
    /**
     * 文件类型
     */
    @TableField(value = "file_type")
    private String fileType;
    /**
     * 文件路径
     */
    @TableField(value = "file_path")
    private String filePath;
    /**
     * 创建人
     */
    @TableField(value = "author_id")
    private String authorId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;


}